﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            String[] str = 
            {
             "小老弟，不慌，吃口药",
             "哎呀，我怎么没了",
             "完了，上当了",
             "我真的是吐了呀",
             "我反手大招，二技能，拔刀，拔。。。。怎么这么肉呀！",
             "看我普通公鸡，普通公鸡",
             "看，这不就好起来了吗？"

            };
            ArrayHelper arrayhelper = new ArrayHelper();
            arrayhelper.PrintArray(str);

            //

            //所以这还是一个奇怪的替换
            string str1 = "我，水水水水还是覅的";
            if (str1.IndexOf(",") != 1)
            {
                str1 = str1.Replace("我", "ni");
            }
            Console.WriteLine("替换后的字符串为：" + str1);

            String str2 = "普通公鸡，普通攻击";
            str2 = str2.Replace("公鸡", "攻击");
            Console.WriteLine(str2);


            int istr = str2.IndexOf("攻");
            Console.WriteLine(istr);



            //啊，脑袋没了
            string str3 = "小树叶的飘落，是风的邀请还是树的不挽留？";

            string[] strspilt = str3.Split('小','，');
            foreach (var ieme in strspilt)
            {
                Console.WriteLine(ieme);
            }







        }
    }
}
